﻿using System;

class NullToIntegerAndDouble
{
    static void Main()
    {
        int? intValue = null;
        Console.WriteLine("This is the integer variable with Null value -> " + intValue);
        Console.WriteLine(intValue.GetValueOrDefault());
        intValue = 123;
        Console.WriteLine("This is the integer variable with value 123 -> " + intValue);
        Console.WriteLine(intValue.GetValueOrDefault());

        double? doubleValue = null;
        Console.WriteLine("This is the double variable with Null value -> " + doubleValue);
        Console.WriteLine(doubleValue.GetValueOrDefault());
        doubleValue = 0.123;
        Console.WriteLine("This is the double variable with value 0.123 -> " + doubleValue);
        Console.WriteLine(doubleValue.GetValueOrDefault());
    }
}